home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / ctlib100.zip / INSTALL.LZH / TYPES.PAS < prev    next >
Pascal/Delphi Source File  |  1996-10-12  |  6KB  |  223 lines

  1. {**************************************************************************}
  2. {*  BitSoft Development, L.L.C.                                           *}
  3. {*  Copyright (C) 1995, 1996 BitSoft Development, L.L.C.                  *}
  4. {*  All rights reserved.                                                  *}
  5. {**************************************************************************}
  6.  
  7. unit Types;
  8.  
  9. interface
  10.  
  11. uses Objects,
  12.      BsdTypes;
  13.  
  14. const
  15.   TotalItems : LongInt = 5000;
  16.   { Number of items that must be inserted in the container being tested. }
  17.  
  18.   TotalDuplicates : Integer = 15;
  19.   { Number of duplicates to insert when testing handling of duplicate items. }
  20.  
  21.   TotalDeleteItems = 100;
  22.   { Number of items that will be inserted for the DeleteAll method. }
  23.  
  24.   TotalDisplayItems = 500;
  25.   { Number of items that will be displayed in a list box. }
  26.  
  27. type
  28.   TCreateFunction = function(Key : String5; Index : Integer): pointer;
  29.   { Functions of this type are used to create the items that will be
  30.     inserted in a container. }
  31.  
  32. const
  33.   Dynamic = True;
  34.   { Indicates if a container is dynamically sized. }
  35.   Static = False;
  36.   { Indicates if a container is static (i.e. not dynamically sized). }
  37.  
  38.   DoublyLinked = True;
  39.   { Indicates if a linked list is doubly-linked }
  40.   SinglyLinked = False;
  41.   { Indicates if a linked list is singly-linked }
  42.  
  43.   Sorted = True;
  44.   { Indicates if a container is sorted }
  45.   UnSorted = False;
  46.   { Indicates if a container is not sorted }
  47.  
  48. const
  49.   TablesTempFileName = 'tables.dat';
  50.   { File name of the temporary file used to test the tables. }
  51.  
  52.   TreesTempFileName = 'btrees.dat';
  53.   { File name of the temporary file used to test the B trees. }
  54.  
  55. const
  56.   { Command constants }
  57.   cmPrint = 100;
  58.   cmStreamStdArray = 101;
  59.   cmStreamStdObjectArray = 102;
  60.   cmStreamObjectArray = 103;
  61.   cmEmsStdArray = 104;
  62.   cmEmsStdObjectArray = 105;
  63.   cmEmsObjectArray = 106;
  64.   cmStreamCollection = 107;
  65.   cmStreamSortedCollection = 108;
  66.   cmStreamStringCollection = 109;
  67.   cmStreamUnSortedStrCollection = 110;
  68.   cmEmsCollection = 111;
  69.   cmEmsSortedCollection = 112;
  70.   cmEmsStringCollection = 113;
  71.   cmEmsUnSortedStrCollection = 114;
  72.   cmListSingle = 115;
  73.   cmListdouble = 116;
  74.   cmSortedListSingle = 117;
  75.   cmSortedListDouble = 118;
  76.   cmQueue = 119;
  77.   cmDoubleEndedQueue = 120;
  78.   cmStreamStack = 121;
  79.   cmLinkedStack = 122;
  80.   cmContiguousStack = 123;
  81.   cmEmsStack = 124;
  82.   cmTable = 125;
  83.   cmObjectTable = 126;
  84.   cmBinaryTree = 127;
  85.   cmAvlTree = 128;
  86.   cmContents = 129;
  87.   cmRegistering = 130;
  88.   cmIms = 131;
  89.   cmAbout = 132;
  90.   cmRefresh = 133;
  91.   cmVideoMode = 134;
  92.   cmTotalItems = 135;
  93.   cmSequenceListBox = 136;
  94.   cmSortedListBox = 137;
  95.   cmTotalDuplicates = 138;
  96.   cmHugeCollection = 139;
  97.   cmHugeSortedCollection = 140;
  98.   cmHugeStringCollection = 141;
  99.   cmHugeUnSortedStrCollection = 142;
  100.   cmHugeArray = 143;
  101.   cmHugeObjectArray = 144;
  102.   cmStdArray = 145;
  103.   cmStdObjectArray = 146;
  104.   cmSortedStdArray = 147;
  105.   cmSortedHugeArray = 148;
  106.   cmSortedStdObjectArray = 149;
  107.   cmSortedHugeObjectArray = 150;
  108.   cmResizableStdArray = 151;
  109.   cmResizableStdObjectArray = 152;
  110.   cmResizableHugeArray = 153;
  111.   cmResizableHugeObjectArray = 154;
  112.   cmHugeCollectionStack = 155;
  113.   cmArrayStack = 156;
  114.   cmHugeArrayStack = 157;
  115.   cmBTree = 158;
  116.   cmObjectBTree = 159;
  117.   cmBPlusTree = 160;
  118.   cmObjectBPlusTree = 161;
  119.  
  120. const
  121.   { Help context constants }
  122.   hcFileMenu = 5;
  123.   hcPrint = 6;
  124.   hcQuit = 7;
  125.   hcSequencesMenu = 8;
  126.   hcArraysMenu = 9;
  127.   hcCollectionsMenu = 10;
  128.   hcListsMenu = 11;
  129.   hcQueuesMenu = 12;
  130.   hcStacksMenu = 13;
  131.   hcTablesMenu = 14;
  132.   hcGraphsMenu = 15;
  133.   hcBTreesMenu = 16;
  134.   hcStreamStdArray = 17;
  135.   hcStreamStdObjectArray = 18;
  136.   hcStreamObjectArray = 19;
  137.   hcEmsStdArray = 20;
  138.   hcEmsStdObjectArray = 21;
  139.   hcEmsObjectArray = 22;
  140.   hcStreamCollection = 23;
  141.   hcStreamSortedCollection = 24;
  142.   hcStreamStringCollection = 25;
  143.   hcStreamUnSortedStrCollection = 26;
  144.   hcEmsCollection = 27;
  145.   hcEmsSortedCollection = 28;
  146.   hcEmsStringCollection = 29;
  147.   hcEmsUnSortedStrCollection = 30;
  148.   hcListSingle = 31;
  149.   hcListdouble = 32;
  150.   hcSortedListSingle = 33;
  151.   hcSortedListDouble = 34;
  152.   hcQueue = 35;
  153.   hcDoubleEndedQueue = 36;
  154.   hcStreamStack = 37;
  155.   hcLinkedStack = 38;
  156.   hcContiguousStack = 39;
  157.   hcEmsStack = 40;
  158.   hcTable = 41;
  159.   hcObjectTable = 42;
  160.   hcBinaryTree = 43;
  161.   hcAvlTree = 44;
  162.   hcContents = 45;
  163.   hcRegistering = 46;
  164.   hcIms = 47;
  165.   hcAbout = 48;
  166.   hcWindowMenu = 49;
  167.   hcTile = 50;
  168.   hcCascade = 51;
  169.   hcClose = 52;
  170.   hcCloseAll = 53;
  171.   hcRefresh = 54;
  172.   hcResize = 55;
  173.   hcZoom = 56;
  174.   hcNext = 57;
  175.   hcPrev = 58;
  176.   hcVideoMode = 59;
  177.   hcOptionsMenu = 60;
  178.   hcTotalItems = 61;
  179.   hcListBoxesMenu = 62;
  180.   hcSequenceListBox = 63;
  181.   hcSortedListBox = 64;
  182.   hcTotalDuplicates = 65;
  183.   hcHugeCollection = 66;
  184.   hcHugeSortedCollection = 67;
  185.   hcHugeStringCollection = 68;
  186.   hcHugeUnSortedStrCollection = 69;
  187.   hcHugeArray = 70;
  188.   hcHugeObjectArray = 71;
  189.   hcStdArray = 72;
  190.   hcStdObjectArray = 73;
  191.   hcSortedStdArray = 74;
  192.   hcSortedHugeArray = 75;
  193.   hcSortedStdObjectArray = 76;
  194.   hcSortedHugeObjectArray = 77;
  195.   hcResizableStdArray = 78;
  196.   hcResizableStdObjectArray = 79;
  197.   hcResizableHugeArray = 80;
  198.   hcResizableHugeObjectArray = 81;
  199.   hcStdArraysMenu = 82;
  200.   hcHugeArraysMenu = 83;
  201.   hcStreamArraysMenu = 84;
  202.   hcHugeCollectionStack = 85;
  203.   hcArrayStack = 86;
  204.   hcHugeArrayStack = 87;
  205.   hcBTree = 88;
  206.   hcObjectBTree = 89;
  207.   hcBPlusTree = 90;
  208.   hcObjectBPlusTree = 91;
  209.  
  210. const
  211.   { Object ID constants }
  212.   idTestBinaryNode = 1000;
  213.   idTestAVLNode = 1001;
  214.   idTestObject =1002;
  215.   idTestStreamSortedCollection = 1003;
  216.   idTestListNode = 1004;
  217.   idTestDoubleNode = 1005;
  218.   idTestStaticObject = 1006;
  219.   idTestEmsSortedCollection = 1007;
  220.   idTestHugeSortedCollection = 1008;
  221.  
  222. implementation
  223. end.